import request from '@/utils/myRequest'

export function getDormList(params) {
  return request({
    url: '/admin/xy/dorm/list',
    method: 'get',
    params
  })
}

export function getDormDetail(params) {
  return request({
    url: '/admin/xy/dorm/detail',
    method: 'get',
    params
  })
}

export function delDorm(params) {
  return request({
    url: '/admin/xy/dorm/del',
    method: 'get',
    params
  })
}

export function updateDorm(data) {
  return request({
    url: '/admin/xy/dorm/update',
    method: 'post',
    data
  })
}

export function saveDorm(data) {
  return request({
    url: '/admin/xy/dorm/save',
    method: 'post',
    data
  })
}
